<div class="eui-tabs" data-options="fit:true,tabWidth:90">
	<div title="功能组信息" style="padding:10px" id="groupinfotab">
		<div class="eui-layout" data-options="fit:true">
			<div data-options="region:'center',border:true,href:'${path}/eframe/framework/funcgroup/group!updateView.action?id=${groupid}'" style="padding:8px"></div>
			<div data-options="region:'south',border:true,height:'38px'" style="text-align:center;padding-top:5px">
				<a class="eui-linkbutton savebtn" data-options="iconCls:'icon-ok'">保存</a>
			</div>
		</div>
	</div>
	<div title="子功能组列表" style="padding:10px" data-options="href:'${path}/eframe/framework/funcgroup/sub-list.ftl?appid=${appid}&groupid=${groupid}'"></div>
	<div title="功能列表" style="padding:10px" data-options="href:'${path}/eframe/framework/function/list.ftl?appid=${appid}&groupid=${groupid}'"></div>
</div>
<script>
	$("#groupinfotab").find(".savebtn").click(function(){
		var submitform = $("#groupinfotab").find(".submitform");
		submitform.form({
			url: submitform.attr("action"),
			success:function(data) {
				var node = $("#tree").tree('find','${groupid}');
				$("#tree").tree('select',node.target);
				reloadSelectedParent();
			}
		});
		if(submitform.form("validate")) {
			submitform.submit();
		}
	});
</script>